package com.phiture.erp.produce.core.pojo.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 主计划分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ErpProduceMainPlanPageReqVO extends PageParam {

    @Schema(description = "计划编码")
    private String no;

    @Schema(description = "来源单据编码")
    private String sourceBillNo;

    @Schema(description = "物料ID", example = "16698")
    private Long materialId;

    @Schema(description = "规格型号")
    private String mode;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "开工日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] startDate;

    @Schema(description = "完工日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] endDate;

    @Schema(description = "物料属性")
    private Integer materialAttr;

    @Schema(description = "MRP选单")
    private Integer mrpSelected;

}